#ifndef SCHED_H_
#define SCHED_H_

#include "fibthread.h"

extern int schedule(void);
extern int switch_context(fibthread_struct *prev_thread, fibthread_struct *next_thread);

extern fibthread_struct *pick_thread(void);
extern void ready_thread(fibthread_struct *fibthread);
extern void run_thread(fibthread_struct *fibthread);
extern void block_thread(void);


#endif
